package zhuzg;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

@SpringBootApplication
@EnableDiscoveryClient  // 注册到注册中心  服务被发现
@EnableFeignClients  // 允许feign 调用生成动态代理
public class StartBService {

    public static void main(String[] args) {
        SpringApplication.run(StartBService.class,args);
        System.out.printf("服务B启动成功");
    }

}
